import { constantRoutes } from '@/router/index'
const state = {
  routes: []
}

const mutations = {
  setMenuList(state, asyncRoutes) {
    state.routes = [...constantRoutes, ...asyncRoutes]
  }
}

const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
